import com.sun.media.jfxmedia.events.PlayerStateListener;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-07
 * Time: 17:11
 */
public class Test {
    public void addLast(int data){
        ListNode node =new ListNode(data);
        if(head==null){
            head=node;
            last=node;
            return;
        }
        last.next=node;
        node.prev=last;
        last=node;
    }
    public static void main(String[] args) {

    }
}
